﻿
#include <cmath>
#include <QDebug>
#include <QFontMetrics>
#include "element.h"

namespace Qly
{
int HTLine::m_hline = 100;

HTLine::HTLine(void)
    :DrawLine()
{

}

int HTLine::mouseMove(QPointF /*point*/)
{
    return 0;
}

int HTLine::mouseLButtonPress(QPointF point)
{
    int x = point.rx();
    int y = point.ry();
    qDebug() << "HTLine::mouseLButtonPress";
    build(QPointF(x, m_hline), QPointF(x, y));
    return 1;
}

int HTLine::mouseLButtonRelease(QPointF point)
{
    Q_UNUSED(point);
    qDebug() << "HTLine::mouseLButtonRelease";
    return 0;
}
}//namespace Qly
